package cn.edu.bupt.freewings.forum.client.rest;

import org.apache.log4j.Logger;

import cn.edu.bupt.freewings.forum.client.base.ClientUtility;
import cn.edu.bupt.freewings.forum.client.Constants;
import cn.edu.bupt.freewings.forum.common.ProjectType;
import cn.edu.bupt.freewings.forum.common.CommonType;
import cn.edu.bupt.freewings.forum.common.UserType;

public class ProjectClient {
	Logger logger = Logger.getLogger(ProjectClient.class.getName());
	public ProjectType.ProjectList getByParentId(Integer id) {
		return (ProjectType.ProjectList) ClientUtility.makeHttpRequest(
				ClientUtility.HTTPMethod.GET, Constants.REST_SERVER + Constants.PROJECTS + "/" 
						+ id, null, null, Constants.MIME_PROTO, ProjectType.ProjectList.class);
	}
}
